{include file="public/header" title='后台首页' keywords='关键字'}
<script src="__JS__/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel margin-top">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改内容</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="{:url('goodPropEdit')}">
            <input type="hidden" name="pid" value="{$line['pid']}">
            <div class="form-group">
                <div class="label">
                    <label>属性标题：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="name" value="{$line['pname']}"/>
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>是否显示：</label>
                </div>
                <div class="field">
                    <input type="radio" name="if_show" value="1" {$line['if_show']==1?'checked':''} id="">显示
                    <input type="radio" name="if_show" value="0" {$line['if_show']==0?'checked':''} id="">不显示
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>分类：</label>
                </div>
                <div class="field">
                    {foreach $pvalue as $v}
                    <input type="checkbox" name="vid[]"value="{$v['vid']}" {if in_array($v['vid'],$line['pvalues'])}checked{/if} id="">{$v['prop_value']}
                    {/foreach}
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>分类标题：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="values" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>排序：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="sort" value="{$line['sort_order']}" data-validate="number:排序必须为数字" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>